using System;
using System.Collections.Generic;
using System.Data;
using System.Data.OleDb;
using System.Text;

namespace SqlToolkit.Oracle.Schema
{
    public class SqlDb : SqlBase
    {
        public SqlDb(OracleDB conn) { _conn = conn; }

        #region Tables
        SqlDbTableCollection tables = null;
        public SqlDbTableCollection Tables
        {
            get
            {
                if (null == tables)
                    tables = SqlSchema.AllTables(_conn);

                return tables;
            }
        }

        #endregion
        #region +Attach Tables
        internal static SqlDb Attach(SqlDb db, SqlDbTableCollection tables)
        {
            db.tables = tables;
            return db;
        }
        #endregion

        
    }
}
